
-- open ffi
ffi = require("ffi")
ffi.cdef[[

int gx_write_here(int c, const char *s, int len);

int gx_close(int c);

int c_add_redis_server(const char* ip,int port);

uint32_t cur_game_time();

uint64_t cur_game_usec();

bool log_write(int level,const char*,int len);

bool log_write2(int index,const char*,int len);

void log_force_flush();

int string_hash(const char *str);



]]
